package org.dzq.designmode.interpreter;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.interpreter
 * @author: 越
 * @date: 2023/6/19 21:49
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Calculator calculator = new Calculator("a+b+c+d");
        Map<String,Integer> map = new HashMap<>();
        map.put("a",3);
        map.put("b",3);
        map.put("c",3);
        map.put("d",3);
        int value = calculator.run(map);
        System.out.println(value);
    }
}
